//
//  CheckUtility.h
//  Rail
//
//  Created by hychen on 2018/2/24.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CheckUtility : NSObject
#pragma mark - 验证
//邮箱验证
+ (BOOL) checkForEmail:(NSString *)email;

//手机号验证
+(BOOL)checkForMobilePhoneNo:(NSString *)mobilePhone;

//电话号验证
+(BOOL)checkForPhoneNo:(NSString *)phone;

//身份证号验证(15位 或 18位)
+(BOOL)checkForIdCard:(NSString *)idCard;

//密码验证
+(BOOL)checkForPasswordWithShortest:(NSInteger)shortest longest:(NSInteger)longest password:(NSString *)pwd;

//由数字和26个英文字母组成的字符串
+ (BOOL) checkForNumberAndCase:(NSString *)data;

//校验只能输入26位小写字母
+ (BOOL) checkForLowerCase:(NSString *)data;

//校验只能输入26位大写字母
+ (BOOL) checkForUpperCase:(NSString *)data;

//校验只能输入由26个英文字母组成的字符串
+ (BOOL) checkForLowerAndUpperCase:(NSString *)data;

//是否含有特殊字符(%&’,;=?$\等)
+ (BOOL) checkForSpecialChar:(NSString *)data;

//校验只能输入数字
+ (BOOL) checkForNumber:(NSString *)number;

//校验只能输入n位的数字
+ (BOOL) checkForNumberWithLength:(NSString *)length number:(NSString *)number;

//校验url
+ (BOOL) checkForWebUrlWithData:(NSString *)data;
@end
